<style type="text/css">
	
	div.login{
		margin:auto;
		width:900px;
	}

</style>


{% extends "home.html" %}


{% block content %}

  {% if form.errors %}
    <p class="error">Sorry, that's not a valid username or password</p>
  {% endif %}
  {%if user.is_authenticated%}
	<p> Welcome, {{user.username}}. HALLO!</p>
  {% else %}
  
  <form action='.' method='post'>
	<div class=login>
		<p>
	    <label for="username">User name:</label>
	    <input type="text" name="username" value="" id="username">
		<p>
	    <label for="password">Password:</label>
	    <input type="password" name="password" value="" id="password">

	    <input type="submit" value="login" />
	    <input type="hidden" name="next" value="{{ next|escape }}" />
	</div>
  <form action='.' method='post'>
	{%endif%}
{% endblock %}
